﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Browser;

namespace MedLink2011.Controls
{
    public partial class ToolTipDashboardContentControl : UserControl
    {
        public ToolTipDashboardContentControl()
        {                                                                                                           
            InitializeComponent();
        }

        private void Launch_Click(object sender, RoutedEventArgs e)
        {
            MessageBox.Show(((HyperlinkButton)sender).Tag.ToString());
            String app_ID = "62206";
            String app_Params = string.Format("xcardId={0}", ((HyperlinkButton)sender).Tag);
            //HtmlPage.Window.Eval("parent.NWCCWorksiteControl.Content.NWCCWorksiteObject.Load_Application_By_Id('" + app_ID + "', '" + app_Params + "');");
            
            
            //HtmlPage.Window.Eval("parent.NWCCWorksiteControl.Content.NWCCWorksiteObject.Load_Application_By_XCard('" + ((HyperlinkButton)sender).Tag.ToString() + "');");
            HtmlPage.Window.Eval("parent.NWCCWorksiteControl.Content.NWCCWorksiteObject.Load_Application_By_XCard('" + 506.ToString() + "');");
        }

        private void Delete_Click(object sender, RoutedEventArgs e) 
        {
            //
        }
    }
}
